package com.szqhyxj.youxiangju.biz.core

import com.google.gson.annotations.SerializedName
import java.math.BigDecimal

data class UserInfo(

        @field:SerializedName("activiteStatus")
        val activiteStatus: Int? = null,

        @field:SerializedName("onlineVip")
        val onlineVip: Int? = null,

        @field:SerializedName("inviteName")
        val inviteName: String? = null,

        @field:SerializedName("serviceNumber")
        val serviceNumber: String? = null,

        @field:SerializedName("realNameAuthStatus")
        val realNameAuthStatus: Int? = null,

        @field:SerializedName("balance")
        val balance: BigDecimal? = null,

        @field:SerializedName("invitePhone")
        val invitePhone: String? = null,

        @field:SerializedName("userType")
        val userType: Int? = null,

        @field:SerializedName("avatar")
        val avatar: String? = null,

        @field:SerializedName("useraccount")
        val useraccount: String? = null,

        @field:SerializedName("username")
        val username: String? = null,

        @field:SerializedName("partnerActivity")
        val partnerActivity: Int? = null
)

fun copy(userInfo: UserInfo): UserInfo {
    return UserInfo(
            activiteStatus = userInfo.activiteStatus,
            onlineVip = userInfo.onlineVip,
            inviteName = userInfo.inviteName,
            serviceNumber = userInfo.serviceNumber,
            realNameAuthStatus = userInfo.realNameAuthStatus,
            balance = userInfo.balance,
            invitePhone = userInfo.invitePhone,
            userType = userInfo.userType,
            avatar = userInfo.avatar,
            useraccount = userInfo.useraccount,
            username = userInfo.username,
            partnerActivity = userInfo.partnerActivity
    )
}